
#include <iostream>
#include <ctime>
#include "AutoTrace.h"

AutoTrace::AutoTrace(const std::string& func){
	this->func = func;
	start = std::clock();
}

AutoTrace::~AutoTrace() {
	long duration = std::clock() - start;
	std::cout << func.c_str() << " duration: " << duration << "ms." << std::endl;
}
